<?php

namespace ApiBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * CompanyPatent
 *
 * @ORM\Table(name="company_patent", options={"comment":"专利表"})
 * @ORM\Entity
 */
class CompanyPatent
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var \ApiBundle\Entity\Company
     *
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\Company")
     * @ORM\JoinColumn(name="company_id", referencedColumnName="id")
     */
    private $company;

    /**
     * @var string
     *
     * @ORM\Column(name="patent_title", type="string", length=255, options={"default":"","comment":"专利名称"})
     */
    private $patentTitle;

    /**
     * @var string
     *
     * @ORM\Column(name="patent_id", type="string", length=255, options={"default":"","comment":"专利唯一id"})
     */
    private $patentId;

    /**
     * @var string
     *
     * @ORM\Column(name="application_number", type="string", length=255, options={"default":"","comment":"申请号"})
     */
    private $applicationNumber;

    /**
     * @var string
     *
     * @ORM\Column(name="patent_type", type="string", length=255, options={"default":"","comment":"专利"})
     */
    private $patentType;

    /**
     * @var string
     *
     * @ORM\Column(name="application_date", type="date", nullable=true, options={"comment":"申请日"})
     */
    private $applicationDate;

    /**
     * @var string
     *
     * @ORM\Column(name="main_ipc", type="string", length=255, nullable=true, options={"default":"", "comment":"主分类号"})
     */
    private $mainIpc;

    /**
     * @var string
     *
     * @ORM\Column(name="applicant", type="string", length=255, options={"default":"", "comment":"申请人"})
     */
    private $applicant;

    /**
     * @var string
     *
     * @ORM\Column(name="summary", type="string", length=255, options={"default":"", "comment":"专利详情"})
     */
    private $summary;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"更新时间"})
     */
    private $updatedAt;
}
